package cn.engage.ekcc.fegincliect;

import cn.engage.ekcc.domain.ProductBuy;
import cn.engage.ekcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

@FeignClient(name = "service-buy", path = "/productBuy")
public interface BuyFeginCliect {
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JsonResult saveOrUpdate(@Valid @RequestBody ProductBuy productBuy);
}
